<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div class="box"></div>
  </body>
  <!-- 1.本地引入 -->
  <!-- <script src="./jquery-3.3.1.min.js"></script> -->
  <!-- 2.CDN引入 -->
  <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.4/jquery.js"></script>
  <script>
    console.dir($);
    $(".box")
      .html("欢迎来到JQ世界")
      .css("color", "red")
      .mouseover(function () {
        $(this).fadeOut(2000);
      });
  </script>
</html>
